package com.mes.device.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.mes.device.mapper.DeviceListMapper;
import com.mes.device.domain.DeviceList;
import com.mes.device.service.IDeviceListService;

/**
 * 设备台账Service业务层处理
 * 
 * @author itflash
 * @date 2025-02-27
 */
@Service
public class DeviceListServiceImpl implements IDeviceListService 
{
    @Autowired
    private DeviceListMapper deviceListMapper;

    /**
     * 查询设备台账
     * 
     * @param id 设备台账主键
     * @return 设备台账
     */
    @Override
    public DeviceList selectDeviceListById(Long id)
    {
        return deviceListMapper.selectDeviceListById(id);
    }

    /**
     * 查询设备台账列表
     * 
     * @param deviceList 设备台账
     * @return 设备台账
     */
    @Override
    public List<DeviceList> selectDeviceListList(DeviceList deviceList)
    {
        return deviceListMapper.selectDeviceListList(deviceList);
    }

    /**
     * 新增设备台账
     * 
     * @param deviceList 设备台账
     * @return 结果
     */
    @Override
    public int insertDeviceList(DeviceList deviceList)
    {
        return deviceListMapper.insertDeviceList(deviceList);
    }

    /**
     * 修改设备台账
     * 
     * @param deviceList 设备台账
     * @return 结果
     */
    @Override
    public int updateDeviceList(DeviceList deviceList)
    {
        return deviceListMapper.updateDeviceList(deviceList);
    }

    /**
     * 批量删除设备台账
     * 
     * @param ids 需要删除的设备台账主键
     * @return 结果
     */
    @Override
    public int deleteDeviceListByIds(Long[] ids)
    {
        return deviceListMapper.deleteDeviceListByIds(ids);
    }

    /**
     * 删除设备台账信息
     * 
     * @param id 设备台账主键
     * @return 结果
     */
    @Override
    public int deleteDeviceListById(Long id)
    {
        return deviceListMapper.deleteDeviceListById(id);
    }
}
